﻿namespace MyAMS.WebServer
{
    /// <summary>
    /// 验证服务
    /// </summary>
    public interface IAuthenticationService
    {        
        /// <summary>
        /// 登入
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="createPersistentCookie">如果设置为 <c>true</c> [重新创建Cookie].</param>
        void SignIn(string userName, bool createPersistentCookie);

        /// <summary>
        /// 登出
        /// </summary>
        void SignOut();
    }
}
